package cn.com.surker.mes.entity;

import cn.com.surker.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * PC物料运输单价表
 * </p>
 *
 * @author admin
 * @since 2025-03-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MesTransportPrice extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 生产运输合同ID oa_production_contract
     */
    private Long contractId;

    /**
     * 运输供应商ID oa_supplier
     */
    private Long supplierId;

    /**
     * 生效时间
     */
    private Date takeTime;

    /**
     * 计算方式0:车次,1:天数 MesCountTypeEnum
     */
    private Integer countType;

    /**
     * 价格类型 TransportPriceTypeEnum
     */
    private Integer priceType;

    /**
     * 车辆类型(0:9.6米,1:13米) CarTypeEnum
     */
    private Integer carModel;

    /**
     * 最小距离
     */
    private Double minDistance;

    /**
     * 最大距离
     */
    private Double maxDistance;

    /**
     * 运输单价
     */
    private Double price;


}
